package com.example.text.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.text.entity.AdminPermission;
import com.example.text.entity.AdminRolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 规则与许可关联表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
@Mapper
public interface AdminRolePermissionDao extends BaseMapper<AdminRolePermission> {

      //根据Rids的集合，找到（Rid=AdminRolePermission.Rid)符合的数据
    List<AdminRolePermission> findAllByRid(@Param("Rids") List<Integer> Rids);
}
